#include <CommandCut.h>
Inheritance diagram for CommandCut:

Public Member Functions | |
| CommandCut (OSGWindows *osgwind) | |
| CommandCut (OSGWindows *osgwind, TraffEduObject *obj) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | cutObjs_ |
| vector< TraffEduObject * > | tmpCutObjs_ |
| vector< TraffEduObject * > | tmpCopiedObjs_ |
| int | rightCLK |
| TraffEduObject * | obj_ |
|
|
A constructor. Initializes osgwind_ and rightCLK variables. It is called if the cut operation is done from the menubar.
|
|
||||||||||||
|
A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the cut operation is done from the menubar.
|
|
|
do the cut operation.
Implements Command. |
|
|
undo the cut operation.
Implements Command. |
|
|
a private vector of TraffEduObjects. It holds the cut objects. |
|
|
a private variable. It is used to hold the cut object. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private variable. It shows if the CommandCut is called from the RightClickMenu or not. |
|
|
a private vector of TraffEduObjects. It holds the copied objects before cut operation is done. |
|
|
a private vector of TraffEduObjects. It holds the cut objects before cut operation is done. |
1.4.6-NO